//
//  YWNoQrcodeRights.h
//  maintain
//
//  Created by kyo on 16/12/28.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, YWNoQrcodeType) {
    YWNoQrcodeTypeKeepWatch = 1,//巡更
    YWNoQrcodeTypeInspection = 2,//巡查
    YWNoQrcodeTypeDetection = 3,//检测
    YWNoQrcodeTypeUpkeep = 4,//保养
    YWNoQrcodeTypeFixTrouble = 5,//维修
    YWNoQrcodeTypeCheckRecord = 6,//清点
    YWNoQrcodeTypeMeterReading = 7,//抄表
    YWNoQrcodeTypeAttendance = 8,//签到
};
//巡更
#define KYWNoQrcodeTypeKeepWatchKey  [NSString stringWithFormat:@"%@%ld",@"KYWNoQrcodeTypeKeepWatchKey",(long)[YWLoginTool loginUser].uniqueId]
//巡查
#define KYWNoQrcodeTypeInspectionKey  [NSString stringWithFormat:@"%@%ld",@"KYWNoQrcodeTypeInspectionKey",(long)[YWLoginTool loginUser].uniqueId]
//检测
#define KYWNoQrcodeTypeDetectionKey  [NSString stringWithFormat:@"%@%ld",@"KYWNoQrcodeTypeDetectionKey",(long)[YWLoginTool loginUser].uniqueId]
//保养
#define KYWNoQrcodeTypeUpkeepKey  [NSString stringWithFormat:@"%@%ld",@"KYWNoQrcodeTypeUpkeepKey",(long)[YWLoginTool loginUser].uniqueId]
//维修
#define KYWNoQrcodeTypeFixTroubleKey  [NSString stringWithFormat:@"%@%ld",@"KYWNoQrcodeTypeFixTroubleKey",(long)[YWLoginTool loginUser].uniqueId]
//清点
#define KYWNoQrcodeTypeCheckRecordKey  [NSString stringWithFormat:@"%@%ld",@"KYWNoQrcodeTypeCheckRecordKey",(long)[YWLoginTool loginUser].uniqueId]
//抄表
#define KYWNoQrcodeTypeMeterReadingKey  [NSString stringWithFormat:@"%@%ld",@"KYWNoQrcodeTypeMeterReadingKey",(long)[YWLoginTool loginUser].uniqueId]
//签到
#define KYWNoQrcodeTypeAttendanceKey  [NSString stringWithFormat:@"%@%ld",@"KYWNoQrcodeTypeAttendanceKey",(long)[YWLoginTool loginUser].uniqueId]

@interface YWNoQrcodeRights : NSObject
//类型
@property (nonatomic, assign) YWNoQrcodeType moduleId;
//值（0启用无码，1禁用无码）
@property (nonatomic, assign) NSInteger value;
@end
